diff options
| author | joonhoekim <26rote@gmail.com> | 2025-12-02 20:04:17 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-12-02 20:04:17 +0900 |
| commit | 7bdddbacf8610140c0c9db7ccb09d546203ce380 (patch) | |
| tree | c59df43eac4c256d54dbea9491e1604535551230 /app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx | |
| parent | 87ab8fa7aa845e3aa56941d9eeaba03f36f4b3d3 (diff) | |
(김준회) 메뉴명과 화면 내 h태그 일치 시키기, i18n 적용
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx b/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx index 9c142df1..5994d3f9 100644 --- a/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx +++ b/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx @@ -2,19 +2,25 @@ import * as React from "react" import { BidProjectsContainer } from "@/components/bidding-projects/bid-projects-container" import { Shell } from "@/components/shell" import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton" +import { useTranslation } from "@/i18n" // Layout 컴포넌트는 서버 컴포넌트입니다 -export default function BidProjectsLayout({ +export default async function BidProjectsLayout({ + params, children, }: { + params: Promise<{ lng: string }> children: React.ReactNode }) { + const { lng } = await params + const { t } = await useTranslation(lng, 'menu') + // 프로젝트 타입 정의 const projectTypes = [ - { id: "all", name: "전체" }, - { id: "SHIP", name: "조선" }, - { id: "TOP", name: "해양 TOP" }, - { id: "HULL", name: "해양 HULL" }, + { id: "all", name: t('common.all') || "전체" }, + { id: "SHIP", name: t('groups.shipbuilding') }, + { id: "TOP", name: `${t('groups.offshore')} TOP` }, + { id: "HULL", name: `${t('groups.offshore')} HULL` }, ] return ( @@ -30,7 +36,7 @@ export default function BidProjectsLayout({ /> } > - <BidProjectsContainer projectTypes={projectTypes}> + <BidProjectsContainer lng={lng} projectTypes={projectTypes}> {children} </BidProjectsContainer> </React.Suspense> |
